<%--
  Created by IntelliJ IDEA.
  User: k
  Date: 2022/4/3
  Time: 10:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page pageEncoding="utf-8" contentType="text/html;charset=UTF-8" language="java" %>
<html>


<head>
    <title>Title</title>

    <style>
        * {
            padding: 0;
            margin: 0;
            text-decoration: none;
            list-style: none;
        }

        body {
            background-image: url("./img/bg2.webp");
            background-size: cover;
            background-attachment: fixed;
            background-position: center;
        }

        .loginBox {
            margin: 100px 45%;
            width: 300px;
            height: 320px;
            padding-left: 57px;
            padding-top: 30px;
            background: white;
            position: relative;
        }

        table {
            width: 350px;
            height: 200px;
        }

        .leftTD {
            height: 50px;
            width: 46px;
            color: #71c6f6;
        }

        .rightTD {
            height: 50px;
            width: 250px;
        }

        button {
            border: none;
            display: inline-block;
            width: 40px;
            height: 25px;
            background: #007eff;
            border-radius: 3px;
            margin-left: 78px;
        }

        button a {
            color: white;
            font-size: 12px;
        }


        .left {
            width: 316px;
            height: 350px;

            position: absolute;
            top: 0;
            left: -316px;
            background: #ffffff52;
        }


        .left p {
            height: 100px;
            text-align: center;
            line-height: 100px;
            color: #03a9f473;
            font-size: 32px;
            font-weight: bold;
        }

        .left span {
            text-align: center;
            letter-spacing: 31px;
            padding-left: 58px;
            font-weight: bold;
            font-size: 26px;
            color: #03a9f4d9;
        }


        .error_Msg {
            color: red;
            font-size: 14px;
        }
        .inputVal{
            border: none;
            border-bottom: 1px solid #71c6f6;
            outline: none;
        }
        .register{
            display: inline-block;
            border: none;
            width: 40px;
            height: 25px;
            background: #007eff;
            border-radius: 3px;
            color: white;
            margin: 20px 30px;
        }
        .ptitle {
            font-size: 12px;
            padding: 20px;
        }
    </style>

</head>
<body>

<div class="loginBox">

    <div class="left">
        <p>Welcome</p>
        <span>欢迎注册</span>
    </div>
    <%--    错误信息回显--%>
    <span class="error_Msg">
        ${requestScope.msg}
    </span>

    <form action="loginAndResgist" method="post">
        <input type="hidden" name="action" value="regist">
        <input type="hidden" name="action" value="add">
        <table>
            <tr>
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    姓名：
                </td>
                <td class="rightTD">
                    <input class="inputVal" type="text" name="sname" value="${requestScope.username}"/>
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    密码：
                </td>
                <td class="rightTD">
                    <input class="inputVal" type="text" name="pwd"/>
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    年龄：
                </td>
                <td class="rightTD">
                    <input class="inputVal" type="text" name="age"/>
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    地址：
                </td>
                <td class="rightTD">
                    <input class="inputVal" type="text" name="address"/>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <p class="ptitle">
                        普通用户:<input type="radio" name="people" checked="checked" value="student">
                        管理员:<input type="radio" name="people" value="manger">
                    </p>


<%--                    普通用户：<input type="radio" name="people" style ="background-color: #FF0000" >--%>
<%--                    管理员：<input type="radio" name="people" style ="background-color: #FF0000" ><br>--%>
                    <input class="register" type="submit" value="注册"/>
                    <button><a href="index.jsp">返回</a></button>
                </td>
            </tr>
        </table>
    </form>
</div>


</body>
</html>
